<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>名称:</label>
					<input type="text" name="name" value="${(name?html)!}" />
				</li>
				<#include "../include_page/disabled.html"/>
				<li>
					<select class="combox" name="superuserAccess">
						<option value=""${(!superuserAccess?has_content)?then(' selected="true"','')}>用户身份</option>
						<option value="false"${(superuserAccess??&&"false"==superuserAccess)?then(' selected="true"','')}>普通用户</option>
						<option value="true"${(superuserAccess??&&"true"==superuserAccess)?then(' selected="true"','')}>超级管理员</option>
					</select>
				</li>
				<li>
					<select class="combox" name="emailChecked">
						<option value=""${(!emailChecked?has_content)?then(' selected="true"','')}>邮箱验证状态</option>
						<option value="false"${(emailChecked??&&"false"==emailChecked)?then(' selected="true"','')}>已验证</option>
						<option value="true"${(emailChecked??&&"true"==emailChecked)?then(' selected="true"','')}>未验证</option>
					</select>
				</li>
				<li class="colspan">
					<label>注册日期:</label>
					<input type="text" name="startRegisteredDate" class="date" size="10" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${startRegisteredDate!}" />
					<span>-</span>
					<input type="text" name="endRegisteredDate" class="date" size="10" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${endRegisteredDate!}" />
				</li>
				<li class="colspan">
					<label>上次登录:</label>
					<input type="text" name="startLastLoginDate" class="date" size="10" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${startLastLoginDate!}" />
					<span>-</span>
					<input type="text" name="endLastLoginDate" class="date" size="10" dateFmt="yyyy-MM-dd" maxDate="{%y}-%M-{%d}" value="${endLastLoginDate!}" />
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li>
						<button type="submit" class="buttonActive">搜索</button>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a href="sysUser/add.html" target="navTab" rel="sysUser/add"><i class="icon-plus-sign-alt icon-large"></i> 添加用户</a></li>
			<li><a href="sysUser/add.html?id={sid}" target="navTab" rel="sysUser/edit"><i class="icon-edit icon-large"></i> 修改用户</a></li>
			<li><a href="sysUser/enable.do?id={sid}" title="确定要启用该用户吗?" target="ajaxTodo"><i class="icon-circle icon-large"></i> 启用</a></li>
			<li><a href="sysUser/disable.do?id={sid}" title="确定要禁用该用户吗?" target="ajaxTodo"><i class="icon-ban-circle icon-large"></i> 禁用</a></li>
		</ul>
	</div>
<@_sysUserList startRegisteredDate=startRegisteredDate endRegisteredDate=endRegisteredDate startLastLoginDate=startLastLoginDate endLastLoginDate=endLastLoginDate 
			superuserAccess=superuserAccess emailChecked=emailChecked name=name 
			advanced=true disabled=disabled  
			orderField=orderField orderType=orderType pageIndex=pageNum count=numPerPage>
	<table class="list" width="100%" layoutH="92">
		<thead>
			<tr>
				<th width="30">ID</th>
				<th>用户名</th>
				<th>用户昵称</th>
				<th>邮箱</th>
				<th>已验证邮箱</th>
				<th>已禁用</th>
				<th>上次登录IP</th>
				<th orderField="lastLoginDate" class="<#if orderField??&&'lastLoginDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">上次登录日期</th>
				<th orderField="loginCount" class="<#if orderField??&&'loginCount'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">登录次数</th>
				<th orderField="registeredDate" class="<#if orderField??&&'registeredDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">注册日期</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td>${a.id!}</td>
				<td>${(a.name?html)!}</td>
				<td>${(a.nickName?html)!}${(a.superuserAccess)?then('[<font color="red">超级管理员</font>]','')}</td>
				<td>${(a.email?html)!}</td>
				<td>${a.emailChecked?then('已验证','未验证')}</td>
				<td>${(a.disabled)?then('<font color="red">禁用</font>','正常')}</td>
				<td>${a.lastLoginIp!}</td>
				<td>${a.lastLoginDate!}</td>
				<td>${a.loginCount!}</td>
				<td>${a.registeredDate!}</td>
				<td>
					<a href="sysUserToken/list.html?userId=${a.id}" target="navTab" rel="sysUserToken/list">
						用户登录授权
					</a>
					<a href="log/login.html?userId=${a.id}" target="navTab" rel="log/login">
						登陆日志
					</a>
					<#if a.superuserAccess>
						<a href="log/operate.html?userId=${a.id}" target="navTab" rel="log/operate">
							后台操作日志
						</a>
					</#if>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</@_sysUserList>
</div>